<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    div{
        width:32px;height:23px;
        float:left;
        /* 内距离 */
        padding-left:20px;
    }
    div.class1{
        /* border:1px solid red; */
    }
    div.class2{
        border:10px solid blue;
    }

    div:hover{
        background-color: red;
    }
</style>
<body>
    <div class="class1">张三</div>
    <div class="class2">李四</div>
</body>
</html>